<?php
/**
 * Created by PhpStorm.
 * User: ZZF
 * Date: 2017/3/16
 * Time: 11:36
 */

namespace app\admin\model;
use think\Model;
use think\Verify;
class StoreModel extends Model{
	protected $validate = [
         'rule' => [
			 'name' => "require|unique:store|length:2,32",
			 'store_no' => "require|unique:store|length:2,32"
		 ],
         'msg'  => [
			 'name.require' => "名称必须填写！",
			 'name.unique' => "名称已存在！",
			 'name.length' => "名称长度必须不少于2且不超过32",
			 'store_no.require' => "编号必须填写！",
			 'store_no.unique' => "编号已存在！",
			 'store_no.length' => "编号长度必须不少于2且不超过32"
		 ]
    ];
}
